﻿using Shape.Events;

namespace Shape
{
	public abstract class EventManager
	{
		private static IEventAggregator _currentEventAggregator = new EventAggregator();

		/// <summary>
		/// 
		/// </summary>
		public static IEventAggregator Current
		{
			get { return _currentEventAggregator; }
		}

		public static void Publish<TEvent>(TEvent item)
		{
			Current.Publish<TEvent>(item);
		}

		public static void Subscribe(ISubscriber subscriber)
		{
			Current.Subscribe(subscriber);
		}
	}
}
